package com.partsoft.dits.dsm;

import java.beans.PropertyEditorSupport;

import com.partsoft.dits.MonitorStatus;

public class MonitorStatusEditorSupport extends PropertyEditorSupport {
	
	@Override
	public void setAsText(String s) throws IllegalArgumentException {
		setValue(MonitorStatus.fromCode(Integer.parseInt(s)));
	}
	
}
